using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpgradeDoublePenetration:Upgrade {

	bool nextForward;

	protected override void ProjectileFiringEventHandler(object _sender,ProjectileEventArgs e) {
		base.ProjectileFiringEventHandler(_sender,e);
		nextForward=!nextForward;
		if(nextForward) return;
		Projectile sender = _sender as Projectile;
		sender.transform.position=sender.transform.position+(Vector3)sender.forward*5f;
		sender.forward=-sender.forward;
	}

}
